<?php
/* @var $this BannerController */
/* @var $model Banner */

$this->breadcrumbs = array(
    'Banners' => TreTodayUrl::backendBannerUrl()
);
?>
<a href="<?php echo TreTodayUrl::backendCreateBannerUrl() ?>" class="btn btn-default">Create</a>
<div id="" class="admin-main-wrapper form-inline">
    <div class="dataTables_wrapper">
        <?php $this->widget('zii.widgets.grid.CGridView', array(
            'id' => 'banner-grid',
            'dataProvider' => $model->search(),
            'filter' => $model,
            'columns' => array(
                'id',
                array('name' => 'type', 'value' => '$data->type == 0 ?"Bên trái":"Bên phải"'),
                array('name' => 'position', 'value' => '$data->getPosition()'),
                'url',
                'order',
                array(
                    'class' => 'CButtonColumn',
                ),
            ),
        )); ?>
    </div>
</div>